# This file is part of BPDQ Toolbox (Basis Pursuit DeQuantizer)
# Copyright (C) 2009, the BPDQ Team (see the file AUTHORS distributed with
# this library) (See the notice at the end of the file.)

# set MLAB to be matlab path
MLAB = /Applications/MATLAB_R2008b.app/
MEX = ${MLAB}/bin/mex

all : proj_lpball_newton_mex prox_tv_mex

proj_lpball_newton_mex: LpNormalizer.cpp LpNormalizer.h LpProjector.cpp \
LpProjector.h proj_lpball_newton_mex.cpp
	${MEX} proj_lpball_newton_mex.cpp LpNormalizer.cpp LpProjector.cpp 

prox_tv_mex : prox_tv_mex.c
	${MEX} prox_tv_mex.c

# The BPDQ Toolbox is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#  
# The BPDQ Toolbox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#  
# You should have received a copy of the GNU General Public License
# along with The BPDQ Toolbox.  If not, see <http://www.gnu.org/licenses/>.
